/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package air.eb;

/**
 *
 * @author JonasF
 */
public class Seat {
    private int nr;
    private char sRow;
    private String aircraft;

    public Seat() {
    }

    public Seat(int nr, char sRow, String aircraft) {
        this.nr = nr;
        this.sRow = sRow;
        this.aircraft = aircraft;
    }

    public String getAircraft() {
        return aircraft;
    }

    public int getNr() {
        return nr;
    }

    public char getSRow() {
        return sRow;
    }

    public void setAircraft(String aircraft) {
        this.aircraft = aircraft;
    }

    public void setNr(int nr) {
        this.nr = nr;
    }

    public void setSRow(char sRow) {
        this.sRow = sRow;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Seat other = (Seat) obj;
        if (this.nr != other.nr) {
            return false;
        }
        if (this.sRow != other.sRow) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 41 * hash + this.nr;
        hash = 41 * hash + this.sRow;
        return hash;
    }



}
